﻿using System;
using System.Collections.Generic;
using System.Data;
using IDAL;
using Model;

namespace BLL
{
    public class PCBAssemble : BaseService<PCBAssembleInfo>
    {
        private static readonly IPCBAssemble dal = DALFactory.DataAccess.CreatePCBAssemble();

        public override void SetCurrentRepository()
        {
            this.CurrentRepository = dal;
        }

        public bool PCBAssembleDetailItem_Insert(PCBAssembleInfo ad, DataTable itemdt)
        {
            return dal.PCBAssembleDetailItem_Insert(ad, itemdt);
        }

        public IList<PCBAssembleInfo> GetPCBAssemblebyDT(DateTime starttime, DateTime stoptime)
        {
            return dal.GetPCBAssemblebyDT(starttime, stoptime);
        }
    }
}
